/*
*   库存量预警设置
*/
import request from '@/router/axios'

export function warningSettingGetList(query) {
  return request({
    url: '/eims/eimsinventorywarning/page',
    method: 'get',
    params: query
  })
}

// 根据ID查询
export function getWarningSettingById(id) {
  return request({
    url: '/eims/eimsinventorywarning/'+id,
    method: 'get'
  })
}

// 修改库存预警设置
export function warningSettingEdit(obj) {
  return request({
    url: 'eims/eimsinventorywarning',
    method: 'put',
    data: obj
  })
}

// 批量修改
export function warningSettingBatchEdit(obj) {
  return request({
    url: '/eims/eimsinventorywarning/batchUpdate',
    method: 'post',
    data: obj
  })
}

// 批量删除
export function warningSettingBatchDel(obj) {
  return request({
    url: '/eims/eimsinventorywarning/batchRemoveById',
    method: 'post',
    data: obj
  })
}

// 镜片类区间区间库存量预警设置
export function warningSettingSaveLensInterval(obj) {
  return request({
    url: '/eims/eimsinventorywarning/saveLensInterval',
    method: 'post',
    data: obj
  })
}

// 非镜片类库存量预警设置
export function warningSettingSaveNoLens(obj) {
  return request({
    url: '/eims/eimsinventorywarning/saveNoLens',
    method: 'post',
    data: obj
  })
}

// 获取制造商列表信息
export function getSupplyDataList(obj) {
  return request({
    url: '/eims/supply/page',
    method: 'get',
    params: obj
  })
}

// 获取品种列表信息
export function getGoodsBrandDataList(obj) {
  return request({
    url: '/eims/brand/page',
    method: 'get',
    params: obj
  })
}

// 获取仓库列表
export function getStockDataList(obj) {
  return request({
    url: '/eims/stock/page',
    method: 'get',
    params: obj
  })
}
